<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><s:property value="#application.website.websiteName"/></title>
<link href="css/index.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="js/tools/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
<script type="text/javascript" src="js/tools/public.js"></script>
<script type="text/javascript" src="js/index.js"></script>
<script type="text/javascript">
var zoomLevel=<s:property value="#application.website.zoomLevel"/>;
var radius=<s:property value="#application.website.radius"/>;
</script>
</head>
<body>
<div id="background">
<img src="<s:property value="#application.website.bgimg"/>">
</div>
<div id="wrap">
<jsp:include page="header.jsp"></jsp:include>
<div id="ind_main">
		<div class="m_top">
        	<ul>
            	<li class="f_l">
                	<p>地图筛选 地图筛选 地图筛选 地图筛选 地图筛选 地图筛选 地图筛选 地图筛选 地图筛选 地图筛选 地图筛选 地图筛选 地图筛选</p>
                    <h3><a href="javascript:void(0);" onclick="dialog(0,'map.html')">进入</a></h3>
                </li>
                <li class="f_r">
                	<p>输入筛选 输入筛选 输入筛选  选 地图筛选 地图筛选地图筛选 地图筛选 地图筛选 地图筛选 地图筛选 地图筛选 地图筛选 地图筛选 筛选</p>
                    <h3><a href="javascript:void(0);" onclick="dialog(1,'loads.html')">进入</a></h3>
                </li>
            </ul>
            <div class="clear"></div>
		</div><!--end.m_top-->
        <div class="m_l">
        	<ul>
        	<s:iterator value="businessList" id="id">
        	     <li>
                	<div class="tx f_l">
                    	<a href="business!businessDetial.action?business.id=<s:property value="#id[0].id"/>"><img src="<s:property value="#id[0].image"/>" /></a>
                    </div>
                    <div class="m_l_n f_r">
                    	<h1><a href="business!businessDetial.action?business.id=<s:property value="#id[0].id"/>"><s:property value="#id[0].name"/></a></h1>
                    	<p>
                    	 <s:property value="@cn.vw.hi.commen.tools.Helper@deleteHtml(#id[0].content,90,'...')"/>
                        </p>
                        <h3><a href="business!businessDetial.action?business.id=<s:property value="#id[0].id" />">点击进入详情</a></h3>
                    </div>
                </li>
        	</s:iterator>
            </ul>
        </div>
        <div class="m_r">
        	<ul>
            	<li>
            	<div class="ad_top"></div>
                <div class="ad_bg"><a href="<s:property value="#application.ad[0].url"/>"><img src="<s:property value="#application.ad[0].image"/>" /></a></div>
                <div class="ad_foot"></div>
            	</li>
                <li>
                <div class="ad_top"></div>
                <div class="ad_bg"><a href="<s:property value="#application.ad[1].url"/>"><img src="<s:property value="#application.ad[1].image"/>" /></a></div>
                <div class="ad_foot"></div>
                </li>
            </ul>
        </div><!--end.m_r-->
		<div class="clear"></div>  
</div><!--end#ind_main--> 


   	<div id="bottom">
		<h1>--------------  商场/酒店/饭店 信息提供的平台  -------------</h1>
    </div><!--end#bottom-->
</div><!--end#wrap-->
<div id="dialog" ></div>
<div id="mapdialog" style="display:none;position: absolute;width:890px;height:621px;top: 50%; left: 50%;margin-left:-445px;margin-top:-200px;">
   <div id="map">
		<h3><select id="countiesIdForMap" onchange="moveMap($(this).find('option:selected').text());" style=" margin-left: 20px;"></select><a href="javascript:void(0);" onclick="$('#mapdialog').hide();"></a></h3>
		<div class="clear"></div>
    	<div class="map_n" id="map_canvas" style="width:852px;height:556px;"></div>
    </div>
</div>
<div id="loaddialog" style="display:none;position: absolute;width:481px;height:265px;top: 50%; left: 50%;margin-left:-240px;margin-top:-130px;">
    	<div id="qy">
    	<div class="qy_n">
    		<h3><a href="javascript:void(0);" onclick="$('#loaddialog').hide();$('#loadList').empty();"></a></h3>
		<div class="clear"></div>
			<h1>区域选择：<select id="countiesId" onchange="loadsListForIndex('loadList',searchStr.split('_')[0],searchStr.split('_')[1],$(this).val())"></select></h1>
            <ul id="loadList">
            	
			</ul>
		</div>
    </div>
</div>
</body>
</html>
